package com.hxzy.controller.vue.mapstruct;

import com.hxzy.controller.vue.employee.req.EmployeeAddReq;
import com.hxzy.controller.vue.employee.resp.EmployeeExcelResp;
import com.hxzy.controller.vue.employee.resp.EmployeeResp;
import com.hxzy.entity.Employee;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/9/1 9:40
 * @Version 1.0
 */
@Mapper
public interface EmployeeConvert {
    EmployeeConvert  INSTANCE= Mappers.getMapper(EmployeeConvert.class);

    Employee  convert(EmployeeAddReq req);
    EmployeeResp convert(Employee entity);

    List<EmployeeExcelResp>  convert(List<Employee> list);
}
